import { createSlice } from '@reduxjs/toolkit'
// import counterReducer from './counterSlice'

// export default configureStore({
// 	reducer: {
// 		counter: counterReducer,
// 	}
// })
const counterSlice = createSlice({
	name:'user',
	initialState:{
		user:"asd"
        // {
		// 	username:"asd",
		// 	passwor:"asd"
		// }
	},
	reducers:{
		getuser(state,action){
            state.user=action.payload.user1
            console.log(state.user);
		}
	}
})
export const {getuser} = counterSlice.actions
export default counterSlice.reducer
